package cn.ray.springframework.test.bean;

public class UserService1 {
    private String uId;
    private String company;
    private String location;

    //这里是一个接口类型的变量，可以引用任何实现了该接口的对象
    //允许实际的实现稍后被注入
    private IUserDao1 userDao;

    public String queryUserInfo() {
        return userDao.queryUserName(uId) + "," + company + "," + location;
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public IUserDao1 getUserDao() {
        return userDao;
    }

    public void setUserDao(IUserDao1 userDao) {
        this.userDao = userDao;
    }
}
